<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>css权重</title>
</head>
    <style>
        /* 修改组件库样式的时候，也会使用!important */
        /* .one{
            color: red !important;
        } */
        .two{
            color: rosybrown;
        }
        #content{
            color: yellow;
        }
        #content.one{
            color: #ccc;
        }
    </style>
<body>
    <div class="one two" id="content">测试内容</div>
</body>
</html>